<?php

namespace App\Models\College;

use App\Models\BaseModel;
use App\Models\Traits\KfUid;

class CollegeTrainingOrderLogModel extends BaseModel
{

    protected $table = 'college_training_order_logs';

    protected $fillable = [
        'orderId',
        'content',
        'handleId',
    ];


    /**
     * 添加日志
     * @param int $orderId
     * @param string $content
     * @param int $userId
     * @return void
     */
    public static function add(int $orderId, string $content, int $userId)
    {
        self::query()->create([
            'handleId'     => $userId,
            'orderId'      => $orderId,
            'content'      => $content,
        ]);
    }

}
